<template>
	
	<div class="app">
		<div class="mui-content">
			<div class="mui-content-padded">
				<h2>{{imginfo.title}}</h2>
				<p class="img" v-html="imginfo.content"> 
					
				</p>
			</div>
		</div>
		
	</div>
	
</template>

<script>
	import  commit  from "../../kits/commit.js"
	export default{
		data(){
			return{
				imginfo:{}
			}
		},
		created(){
			this.getart(this.$route.params.id )
		},
		methods:{
			getart(newid){
				var url = commit.api + "/api/goods/getdesc/"+newid;
				this.$http.get(url).then(res=>{
					this.imginfo = res.body.message[0];
				},res=>{
					console.log("数据获取失败")
				})
			}			
		}
		
			
		
	}
</script>

<style scoped>
	.img img{
		width: 100%;
	}
</style>